package service

import (
	"context"
	{{.TableCamelNameLower}}Api "mldong/api/{{.TableCamelNameLower}}"
	"reflect"
)

type I{{.TableCamelName}}Service interface {
	/**
	* 添加{{.Remark}}
	 */
	Save(ctx context.Context, req *{{.TableCamelNameLower}}Api.SaveReq) (res bool, err error)
	/**
	* 修改{{.Remark}}
	 */
	Update(ctx context.Context, req *{{.TableCamelNameLower}}Api.UpdateReq) (res bool, err error)
	/**
	* 删除{{.Remark}}
	 */
	Remove(ctx context.Context, ids []string) (res bool, err error)
	/**
	* {{.Remark}}详情
	 */
	Detail(ctx context.Context, id string) (res {{.TableCamelNameLower}}Api.{{.TableCamelName}}VO, err error)
	/**
	* {{.Remark}}分页查询
	 */
	Page(ctx context.Context, req *{{.TableCamelNameLower}}Api.PageReq) (res {{.TableCamelNameLower}}Api.{{.TableCamelName}}PageVO, err error){{ if .IsTree }}
	/**
	* {{.Remark}}列表
	 */
	List(ctx context.Context, req *{{.TableCamelNameLower}}Api.ListReq) (res []*{{.TableCamelNameLower}}Api.{{.TableCamelName}}VO, err error)
	/**
	* {{.Remark}}树
	 */
	Tree(ctx context.Context, req *{{.TableCamelNameLower}}Api.TreeReq) (res []*{{.TableCamelNameLower}}Api.{{.TableCamelName}}VO, err error){{ end}}
}

var {{.TableCamelName}}ServiceType = reflect.TypeOf((*I{{.TableCamelName}}Service)(nil)).Elem()
